<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>使用详情</title>
    <link rel="stylesheet" href="/asset/layui/css/layui.css">
    <link rel="stylesheet" href="/asset/css/base.css">
    <link rel="Shortcut Icon" href="cachet.ico">
    <script type="text/javascript" src="/asset/js/jquery-3.3.1.min.js"></script>
	<script src="/asset/layui/layui.js"></script>
    <script src="/asset/js/common.js"></script>
</head>
<body >
<div class="x-body">

	<div class="layui-form">
		  	
          <div class="layui-form-item">
          	 <div class="layui-inline">
	              <label for="devicesId" class="layui-form-label">申请时间</label>
	              <div class="layui-input-inline layui-form-mid layui-word-aux">
	              		${apply.applyTime?string('yyyy-MM-dd HH:mm:ss')}
	              </div>
              </div>
              
              <div class="layui-inline">
	              <label for="devicesId" class="layui-form-label">申请类型</label>
	              <div class="layui-input-inline layui-form-mid layui-word-aux">
	              		<@linkage type="APPLY_TYPE" key=apply.applyType>
				        		<span class="${linkage.style}">${linkage.name}</span>
				        	</@linkage>
	              </div>
              </div>
          </div>
          
          <div class="layui-form-item">
          	 <div class="layui-inline">
	              <label for="devicesId" class="layui-form-label">申请印章</label>
	              <div class="layui-input-inline layui-form-mid layui-word-aux">
	              	${apply.seal.sealName}
	              </div>
              </div>
              
              <div class="layui-inline">
	              <label for="devicesId" class="layui-form-label">申请事由</label>
	              <div class="layui-input-inline layui-form-mid layui-word-aux">
	              	${apply.cause}
	              </div>
              </div>
          </div>
          
          
          <div class="layui-form-item">
              <label for="devicesId" class="layui-form-label">审批人</label>
              <div class="layui-input-inline layui-form-mid layui-word-aux">
              
              <#if apply.applyType =='TEST_APPLY'>
              	系统审核
              <#else>	
              		<#list verifys as item> 
		              	<#if item_index gt 0 >、</#if>
		              	${item.person.name}
		             </#list>
              </#if>
              
              </div>
          </div>
          
          
          <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
			  <legend>使用信息</legend>
		 </fieldset>
          
          <div class="layui-form-item">
          	 <div class="layui-inline">
	              <label for="devicesId" class="layui-form-label">使用时间</label>
	              <div class="layui-input-inline layui-form-mid layui-word-aux">
	              	${used.usedTime?string('yyyy-MM-dd HH:mm:ss')}
	              </div>
              </div>
              
              <div class="layui-inline">
	              <label for="devicesId" class="layui-form-label">使用设备</label>
	              <div class="layui-input-inline layui-form-mid layui-word-aux">
	              	${used.devices.devicesCode}
	              </div>
              </div>
          </div>
          
          <div class="layui-form-item">
          	 <div class="layui-inline">
	              <label for="devicesId" class="layui-form-label">使用人</label>
	              <div class="layui-input-inline layui-form-mid layui-word-aux">
	              	${used.person.name}
	              </div>
              </div>
              
              <div class="layui-inline">
	              <label for="devicesId" class="layui-form-label">使用状态</label>
	              <div class="layui-input-inline layui-form-mid layui-word-aux">
	              		<@linkage type="USED_STATUS" key=used.usedStatus>
				        		<span class="${linkage.style}">${linkage.name}</span>
				        	</@linkage>
	              </div>
              </div>
          </div>
          
          
          <table class="layui-table mytable" lay-even="" lay-skin="nob">
               
                <thead>
	                <tr>
	                    <th>上传时间</th>
	                    <th>状态</th>
	                    <th></th>
	                </tr>
                </thead>
                <tbody>
                		<#list usedCerts as item> 
                    <tr>
                        <td>${item.createTime?string('yyyy-MM-dd HH:mm:ss')}</td>
                        <td>${item.certStatus}</td>
                        <td>
                        		<#list item.upfiles as upfile>
                        		<li><img src="${upfile.fileUrl}" style="width:30px"></li>
                        		</#list>
                        </td>
                    </tr>
                    </#list>
                </tbody>
            </table>
      </div>
</div>

</body>
</html>